<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*"%>
<%
	session.setAttribute("stage", "2");
	request.setCharacterEncoding("UTF-8");
%>
<jsp:include page="/share/layout.jsp" flush="true">
    <jsp:param name="title" value="新規利用者登録"/>
    <jsp:param name="css" value="member.css"/>
    <jsp:param name="style" value="common.css"/>
    <jsp:param name="content">
        <jsp:attribute name="value">
<%

	String user_id 		= (String)request.getParameter("user_id");
	String user_name 	= (String)request.getParameter("user_name");
	String user_ruby 	= (String)request.getParameter("user_ruby");
	String password 	= (String)request.getParameter("password");
	String id_redline 	= (String)request.getAttribute("id_redline");
	String name_redline = (String)request.getAttribute("name_redline");
	String ruby_redline = (String)request.getAttribute("ruby_redline");
	String pass_redline = (String)request.getAttribute("pass_redline");

	String blank_error 	= (String)request.getAttribute("blank_error");
	String id_error 	= (String)request.getAttribute("id_error");
	String name_errore	= (String)request.getAttribute("name_errore");
	String ruby_error 	= (String)request.getAttribute("ruby_error");
	String pass_error 	= (String)request.getAttribute("pass_error");


	// ユーザ名が取得できなければ空白を設定
	if(user_id == null){
		user_id 	= "";
	}
	if(user_name == null){
		user_name	= "";
	}
	if(user_ruby == null){
		user_ruby 	= "";
	}
	if(password == null){
		password 	= "";
	}
 %>

<!-- 	エラーメッセージ設定変更【20131017_yano】 -->
	<p class="error_message">
	<%-- エラーメッセージが設定されていれば表示 --%>

<% if(blank_error != null ){ %>
<%=blank_error %><br>
<%} %>
<% if(id_error != null){ %>
<%=id_error %><br>
<%} %>
<% if(ruby_error != null){ %>
<%=ruby_error %><br>
<%} %>
<% if(pass_error != null){ %>
<%=pass_error %><br>
<%} %>

	</p>
<!-- メッセージを追加【20131017_yano】 -->
<p>新規利用者情報を入力して下さい</p>

<form action="/Books/member/EntryServlet"  method="post">
<table class="form_table">
	<tr>
		<th>氏名</th>
		<td><input type="text" name="user_name"
		 value="<%= user_name %>"  class="<%= name_redline %>"/></td>
	</tr>
		<tr>
		<th>フリガナ</th>
		<td><input type="text" name="user_ruby"  value="<%= user_ruby %>"  class="<%= ruby_redline %>"/></td>
	</tr>
 	<tr>
		<th>メールアドレス</th>
		<td><input type="text" name="user_id" value="<%= user_id %>"  class="<%= id_redline %>"/></td>
	</tr>
	<tr>
		<th>パスワード</th>
		<td><input type="text" name="password"  value="<%= password %>"  class="<%= pass_redline %>"/></td>
	</tr>
</table>
	<br>


	<div id  ="button">
<!-- 	『戻る』ボタンの機能変更【20131017_yano】 -->
  	<input type="button" class="button" value="戻る" style="cursor:pointer" title="『利用者検索結果』へ" onClick="history.back(); return false;">
	<input class = "button" type="submit"  value="確認" >
	</div>
	</form>

<!-- 	<form action="/Books/member/UserMemberSearchServlet"  method="post"> -->
<!-- 		<div id  ="button"> -->
<!--   		  <input type="button" class="button" value="戻る" style="cursor:pointer" title="『利用者検索結果』へ"> -->
<!--   		  </div> -->
<!-- </form> -->

<!-- contents end -->
        </jsp:attribute>
    </jsp:param>
</jsp:include>

